<?php

namespace App\Http\Requests\Setting;

use App\Http\Requests\FormRequest;

class RoleStoreRequest extends FormRequest
{
    public function rules(): array
    {
        return [
            'name' => 'required|string|max:20',
            'key' => 'required|string|max:20',
            'menus' => 'required|string|max:128',
            'remark' => 'nullable|max:128',

            'relMenus' => 'required|array',
            'relMenus.*' => 'required|integer',
        ];
    }
}
